phpDocumentor Web Commons
[ class tree: Web Commons ] [ index: Web Commons ] [ all elements ]

Class: AbstractController

Source Location: /controller.php

Class AbstractController

Class Overview

Defines a common base for web controllers.

Located in /controller.php [line 15]



		
				Author(s):
		
API Tags:
Abstract:  

Information Tags:
Since:  0.1

Methods

[ Top ]
Method Summary
Request   getRequest()  
mixed   runAction()   Finds the action named "do_$action" and runs it with the $request object.
void   setRequest()  

[ Top ]
Methods
getRequest  [line 25]

  Request getRequest( )


API Tags:
Access:  public

Information Tags:
Since:  0.1

[ Top ]
runAction  [line 48]

  mixed runAction( string $action, Request $request  )

Finds the action named "do_$action" and runs it with the $request object.

Returns the return value of the action. Throws an ActionNotFoundException if the action could not be found.

Parameters:
string   $action: 
Request   $request: 

API Tags:
Access:  public

Information Tags:
Throws:  ActionNotFoundException
Since:  0.1

[ Top ]
setRequest  [line 33]

  void setRequest( Request $request  )

Parameters:
Request   $request: 

API Tags:
Access:  public

Information Tags:
Since:  0.1

[ Top ]

Documentation generated on Fri, 16 Jul 2010 00:48:39 +0200 by phpDocumentor 1.4.3